<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<c:if test="${code==1}">
	<form id="pagerForm" method="post" action="courierJoinAction.action?toResult=searchCourierJoin&rightId=${rightId}">
		<input type="hidden" name="pageNum" value="${page.currentPage }" /> 
		<input type="hidden" name="pageSize" value="${page.pageSize }" />
		<input type="hidden" name="checkStatus" value="${checkStatus}" />
	</form>

	<form onsubmit="return navTabSearch(this);" action="courierJoinAction.action?toResult=searchCourierJoin&rightId=${rightId}" method="post">
		<div class="pageHeader">
			<input type="hidden" name="init" value=0>
		</div>
		
		<table class="searchContent">
						<tr>
							
					<td>是否处理: 
						<select name="checkStatus" id="checkStatus_id">
						<option  value="0" <s:if test="#request.checkStatus==0">selected="selected"</s:if> >未处理</option>
						<option  value="1" <s:if test="#request.checkStatus==1">selected="selected"</s:if> >已处理</option>
					</select>
					</td>
							
							<td>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
							
							<td>
								<div class="buttonActive">
									<div class="buttonContent">
										<button type="submit">检索</button>
									</div>
								</div>
							</td>
						</tr>
					</table>
		
		
		<div class="pageContent">
			<div class="panelBar">
				<ul class="toolBar">
					<c:forEach items="${righSubtList}" var="rightsub">
		<%-- 				<!-- 添加  -->
						<c:if test="${fn:contains(rightsub.rightValue,'addRegInfo')}">
							<li><a class="add" href="${rightsub.rightValue}&rightId=${rightId}" target="navTab"><span>${rightsub.rightName}</span> </a></li>
							<li class="line">line</li>
						</c:if> --%>
						<!-- 修改 -->
						<!-- 审核 -->
						<c:if test="${fn:contains(rightsub.rightValue,'checkCourierJoin')}">
							<li><a class="edit" href="${rightsub.rightValue}&supportID={sid_support}&rightId=${rightId}" target="navTab" ><span>${rightsub.rightName}</span> </a></li>
							<li class="line">line</li>
						</c:if>
					</c:forEach>
				</ul>
			</div>
			<table class="list" width="100%" layoutH="138">
				<thead>
					<tr>
						<th align="center">序号</th>
						<th align="center">姓名</th>
						<th align="center">年龄</th>
						<th align="center">是否处理</th>
						<th align="center">处理备注</th>
						<th align="center">电话</th>
						<th align="center">手机系统</th>
						<th align="center">是否有车</th>
						<th align="center">是否有经验</th>
						<th align="center">现居住地</th>
						<th align="center">希望工作区域</th>
						<th align="center">时间</th>
					</tr>
				</thead>
				<tbody>
					<s:iterator var="courierJoin" value="page.data" status="st">
						<tr target="sid_support" rel="<s:property value="#courierJoin.id" />">
							<th width="1%" align="center"><s:property value="page.pageSize * (page.currentPage-1) + #st.index + 1" /></th>
							<th width="3%" align="center"><s:property value="#courierJoin.strJoinName" /></th>
							<th width="5%" align="center"><s:property value="#courierJoin.intJoinAge" /></th>
							<th width="5%" align="center">
							<s:if test="#request.courierJoin.intStatus==0">
								<span style="color:red">未处理</span>	</s:if>
							<s:elseif test="#request.courierJoin.intStatus==1">
								<span style="color">已处理</span></s:elseif>	
							</th>
							<th width="5%" align="center"><s:property value="#courierJoin.checkContent" /></th>
							<th width="5%" align="center"><s:property value="#courierJoin.intJoinMobile" /></th>
							<th width="5%" align="center">
							<s:if test="#request.courierJoin.intSystem==0">
								<span>android</span>	</s:if>
							<s:elseif test="#request.courierJoin.intSystem==1">
								<span style="color">IOS</span></s:elseif>	
							</th>
							
							<th width="5%" align="center">
							<s:if test="#request.courierJoin.intCar==0">
								<span>没有</span>	</s:if>
							<s:elseif test="#request.courierJoin.intCar==1">
								<span style="color: blue">有车</span></s:elseif>	
							</th>
							
							<th width="5%" align="center">
							<s:if test="#request.courierJoin.intExp==0">
								<span>没有经验</span>	</s:if>
							<s:elseif test="#request.courierJoin.intExp==1">
								<span style="color: blue">有经验</span></s:elseif>	
							</th>
							
							<th width="7%" align="center"><s:property value="#courierJoin.strJoinNowAddr" /></th>
							<th width="5%" align="center"><s:property value="#courierJoin.strJoinOldAddr" /></th>
							<th width="5%" align="center"><s:date name="#courierJoin.createDate" format="yyyy-MM-dd HH:mm:ss" /></th>
						</tr>
					</s:iterator>
				</tbody>
			</table>
			<div class="panelBar">
				<div class="pages">
					<span>共${page.totalNum }条，共${page.totalPage }页</span>
				</div>
				<div class="pagination" targetType="navTab" totalCount="${page.totalNum }" numPerPage="${page.pageSize }" pageNumShown="10" currentPage="${page.currentPage }"></div>
			</div>
		</div>
	</form>
</c:if>
<c:if test="${code==0}">
	${message}
</c:if>